Multi-exposure image fusion method based on feature distribution weight of multi-exposure image

ABSTRACT

The present disclosure provides a multi-exposure image fusion (MEF) method based on a feature distribution weight of a multi-exposure image, including: performing color space transformation (CST) on an image, determining a luminance distribution weight of the image, determining an exposure distribution weight of the image, determining a local gradient weight of the image, determining a final weight, and determining a fused image. The present disclosure combines the luminance distribution weight of the image, the exposure distribution weight of the image and the local gradient weight of the image to obtain the final weight, and fuses the input image and the weight with the existing pyramid-based multi-resolution fusion method to obtain the fused image, thereby solving the technical problem that an existing MEF method does not consider the overall feature distribution of the multi-exposure image.

CROSS REFERENCE TO RELATED APPLICATION

This patent application claims the benefit and priority of Chinese Patent Application No. 202110459450.7, filed on Apr. 27, 2021, the disclosure of which is incorporated by reference herein in its entirety as part of the present application.

TECHNICAL FIELD

The present disclosure belongs to the technical field of image processing, and particularly relates to reconstruction of high dynamic range (HDR) images.

BACKGROUND ART

There is a very wide dynamic range in nature from 10⁻³ cd/m² in the nighttime to 10⁶ cd/m² in the daytime. Human eyes adaptive to light can observe natural scenes within 1:10⁴ dynamic range. The dynamic range captured by common digital cameras is merely 0-255. As information in common low dynamic range (LDR) images cannot express HDR scenes completely, a number of methods have been proposed by the researchers. Conventionally, the dynamic ranges and contents of the LDR images are extended with an expansion operator, and the HDR images are then reconstructed according to a response function of the camera; and due to complicated and difficulty computation for the response function of the camera, it is common practice to input multiple LDR images with different exposures to determine their respective weight maps and obtain the high-quality LDR images through weighted fusion. The HDR images cannot be directly displayed on common display devices, unless they are transformed into the LDR images by tone mapping. The LDR images obtained by fusing multiple exposure images can be viewed as the LDR images after the tone mapping, and this is called the multi-exposure image fusion (MEF) method.

The MEF method includes the patch-wise and pixel-wise approaches. The former is to divide an input image into different patches and determine the weight map of the image according to features of each patch; and for the fused image obtained, it is necessary to eliminate spatial artifacts between the patches and to pre-process or post-process the image. The latter is to obtain the weight map by computing the weight value at each pixel of the input image. Thus, it is of great importance to determine the weight function of the weight map. The existing pixel-wise MEF method generally only designs the weight function according to the feature distribution of the input image, and mostly needs to set parameters and cannot determine the weight adaptively.

SUMMARY

In view of the defects in the prior art, the present disclosure provides an MEF method based on a feature distribution weight of a multi-exposure image, with high fusion quality, simple computation, and inclusion of abundant information and clear details in the fused image.

To solve the above technical problems, the technical solution used by the present disclosure includes the following steps:

(1) performing color space transformation (CST) on an image

transforming red, green, and blue (RGB) color components of an input multi-exposure image into a luminance component Y_(n)(x,y), a blue chrominance component Cb_(n)(x,y), and a red chrominance component Cr_(n)(x,y):

Y _(n)(x,y)=0.257R _(n)(x,y)+0.564G _(n)(x,y)+0.098B _(n)(x,y)+16

Cb _(n)(x,y)=−0.148R _(n)(x,y)−0.291G _(n)(x,y)+0.439B _(n)(x,y)+128

Cr _(n)(x,y)=0.439R _(n)(x,y)−0.368G _(n)(x,y)−0.071B _(n)(x,y)+128   (1)

where, R_(n)(x,y) is a red component at a pixel (x,y) in an nth image, G_(n)(x,y) is a green component at the pixel (x,y) in the nth image, B_(n)(x,y) is a blue component at the pixel (x,y) in the nth image, n is a finite positive integer, nϵ[1,N], (x,y) is a position coordinate of the pixel, and N is a number of exposure images and is a finite positive integer;

(2) determining a luminance distribution weight of the image

determining the luminance distribution weight w_(1,n)(x,y) of the image according to eq. (2):

$\begin{matrix} {{w_{1,n}\left( {x,y} \right)} = {\exp\left( {- \frac{\left( {{Y_{n}\left( {x,y} \right)} - \left( {1 - m_{n}} \right)} \right)^{2}}{2{S_{n}^{2}\left( {x,y} \right)}}} \right)}} & (2) \end{matrix}$ ${S_{n}\left( {x,y} \right)} = \frac{Y_{n}\left( {x,y} \right)}{\sum_{n = 1}^{N}{Y_{n}\left( {x,y} \right)}}$

where, m_(n) is a mean of the nth image;

(3) determining an exposure distribution weight of the image

determining the exposure distribution weight w_(2,n) (x,y) of the image according to eq.

$\begin{matrix} {{w_{2,n}\left( {x,y} \right)} = {1 - {D_{n}\left( {x,y} \right)}}} & (3) \end{matrix}$ D_(n)(x, y) = ❘Y_(n)(x, y) − m(x, y)❘ ${m\left( {x,y} \right)} = {\frac{1}{N}{\sum_{n = 1}^{N}{Y_{n}\left( {x,y} \right)}}}$

(4) determining a local gradient weight of the image

determining the local gradient weight w_(3,n)(x,y) of the image according to eq. (4):

$\begin{matrix} {{w_{3,n}\left( {x,y} \right)} = \frac{{grad}_{n}\left( {x,y} \right)}{{\sum_{n = 1}^{N}{{grad}_{n}\left( {x,y} \right)}} + \varepsilon}} & (4) \end{matrix}$ ${{grad}_{n}\left( {x,y} \right)} = \sqrt{{d_{x}^{2}\left( {x,y} \right)} + {d_{y}^{2}\left( {x,y} \right)}}$ ${d_{x}\left( {x,y} \right)} = \frac{\partial\left( {{Y_{n}\left( {x,y} \right)} \otimes {G_{1}\left( {x,y} \right)}} \right)}{\partial x}$ ${d_{y}\left( {x,y} \right)} = \frac{\partial\left( {{Y_{n}\left( {x,y} \right)} \otimes {G_{1}\left( {x,y} \right)}} \right)}{\partial y}$ ${G_{1}\left( {x,y} \right)} = {\frac{1}{2{\pi\sigma}_{1}^{2}}{\exp\left( {- \frac{\left( {x - \left( {k_{1} + 1} \right)} \right)^{2} + \left( {y - \left( {k_{1} + 1} \right)} \right)^{2}}{2\sigma_{1}^{2}}} \right)}}$

where, ε is in a range of [10⁻¹⁴,10⁻¹⁰], ⊗ is a filtering operation, G₁(x,y) is a two-dimensional (2D) Gaussian kernel function, k₁ is a parameter on a window size of a filter, k₁ϵ[2,16], and σ₁ is a standard deviation of the filter, σ₁ϵ(0,5];

(5) determining a final weight

determining the final weight W_(n)(x,y) according to eq. (5):

$\begin{matrix} {{W_{n}\left( {x,y} \right)} = \frac{g_{n}\left( {x,y} \right)}{{\sum_{n = 1}^{N}{g_{n}\left( {x,y} \right)}} + \varepsilon}} & (5) \end{matrix}$ g_(n)(x, y) = w_(n)(x, y) ⊗ G₂(x, y) ${G_{2}\left( {x,y} \right)} = {\frac{1}{2{\pi\sigma}_{2}^{2}}{\exp\left( {- \frac{\left( {x - \left( {k_{2} + 1} \right)} \right)^{2} + \left( {y - \left( {k_{2} + 1} \right)} \right)^{2}}{2\sigma_{2}^{2}}} \right)}}$ w_(n)(x, y) = w_(1, n)(x, y) × w_(2, n)(x, y) × w_(3, n)(x, y)

where, G₂(x,y) is a 2D Gaussian kernel function, k₂ is a parameter on a window size of a filter, k₂∈[2,20], and σ₂ is a standard deviation of the filter, σ²ϵ(0,10]; and

(6) determining a fused image

fusing the input image and the weight with an existing pyramid-based multi-resolution fusion method to determine the fused image; and

completing the MEF method based on a feature distribution weight of a multi-exposure image.

In step (4) of the present disclosure, the k₁ is 8, and the σ₁ is 2.

In step (5) of the present disclosure, the k₂ is 10, and the σ₂ is 5.

By determining the luminance distribution weight of the image, the exposure distribution weight of the image and the local gradient weight of the image, the present disclosure combines the luminance distribution weight of the image, the exposure distribution weight of the image and the local gradient weight of the image to obtain the final weight; and the present disclosure fuses the input image and the weight with the existing pyramid-based multi-resolution fusion method to obtain the fused image. When the weight of the input image is determined, considerations are given to the feature distribution of the multi-exposure image. The weight function can adaptively compute the weight for each pixel in the images, and can obtain the weights of the images simply and quickly, to solve the technical problem that the existing MEF method does not consider the overall feature distribution of the multi-exposure image. The present disclosure has the advantages of high fusion quality, simple computation, and inclusion of abundant information and clear details in the fused image, and so on, and can be applied to the MEF to reconstruct HDR images.

BRIEF DESCRIPTION OF THE DRAWINGS

FIG. 1 is a flow chart according to Embodiment 1 of the present disclosure;

FIG. 2 illustrates four input images of a multi-exposure cave image of Embodiment 1; and

FIG. 3 illustrates a fused image of Embodiment 1.

DETAILED DESCRIPTION OF THE EMBODIMENTS

The present disclosure will be further described below in detail with reference to accompanying drawings and embodiments, but the present disclosure is not limited to the following embodiments.

Embodiment 1

Taking four input images of the multi-exposure cave image as an example, the MEF method based on a feature distribution weight of a multi-exposure image in the embodiment includes the following steps (refer to FIG. 1):

(1) CST is performed on an image

RGB color components of an input multi-exposure image are transformed into a luminance component Y_(n)(x,y), a blue chrominance component Cb_(n)(x,y), and a red chrominance component Cr_(n)(x,y):

Y _(n)(x,y)=0.257R _(n)(x,y)+0.564G _(n)(x,y)+0.098B _(n)(x,y)+16

Cb _(n)(x,y)=−0.148R _(n)(x,y)−0.291G _(n)(x,y)+0.439B _(n)(x,y)+128

Cr _(n)(x,y)=0.439R _(n)(x,y)−0.368G _(n)(x,y)−0.071B _(n)(x,y)+128   (1)

where, R_(n)(x,y) is a red component at a pixel (x,y) in an nth image, G_(n)(x,y) is a green component at the pixel (x,y) in the nth image, B_(n)(x,y) is a blue component at the pixel (x,y) in the nth image, n is a finite positive integer, nϵ[1,N], (x,y) is a position coordinate of the pixel, and N is a number of exposure images. In the embodiment, the input images are as shown in FIG. 2, and the N is 4. For different input images, the N and the number of input images are the same.

(2) A luminance distribution weight of the image is determined

The luminance distribution weight w_(1,n)(x,y) of the image is determined according to Eq. (2):

$\begin{matrix} {{w_{1,n}\left( {x,y} \right)} = {\exp\left( {- \frac{\left( {{Y_{n}\left( {x,y} \right)} - \left( {1 - m_{n}} \right)} \right)^{2}}{2{S_{n}^{2}\left( {x,y} \right)}}} \right)}} & (2) \end{matrix}$ ${S_{n}\left( {x,y} \right)} = \frac{Y_{n}\left( {x,y} \right)}{\sum_{n = 1}^{N}{Y_{n}\left( {x,y} \right)}}$

where, m_(n) is a mean of the nth image.

(3) An exposure distribution weight of the image is determined

The exposure distribution weight w_(2,n)(x,y) of the image is determined according to Eq. (3):

$\begin{matrix} {{w_{2,n}\left( {x,y} \right)} = {1 - {D_{n}\left( {x,y} \right)}}} & (3) \end{matrix}$ D_(n)(x, y) = ❘Y_(n)(x, y) − m(x, y)❘ ${m\left( {x,y} \right)} = {\frac{1}{N}{\sum_{n = 1}^{N}{Y_{n}\left( {x,y} \right)}}}$

(4) A local gradient weight of the image is determined

The local gradient weight w_(3,n)(x,y) of the image is determined according to Eq. (4):

$\begin{matrix} {{w_{3,n}\left( {x,y} \right)} = \frac{{grad}_{n}\left( {x,y} \right)}{{\sum_{n = 1}^{N}{{grad}_{n}\left( {x,y} \right)}} + \varepsilon}} & (4) \end{matrix}$ ${{grad}_{n}\left( {x,y} \right)} = \sqrt{{d_{x}^{2}\left( {x,y} \right)} + {d_{y}^{2}\left( {x,y} \right)}}$ ${d_{x}\left( {x,y} \right)} = \frac{\partial\left( {{Y_{n}\left( {x,y} \right)} \otimes {G_{1}\left( {x,y} \right)}} \right)}{\partial x}$ ${d_{y}\left( {x,y} \right)} = \frac{\partial\left( {{Y_{n}\left( {x,y} \right)} \otimes {G_{1}\left( {x,y} \right)}} \right)}{\partial y}$ ${G_{1}\left( {x,y} \right)} = {\frac{1}{2{\pi\sigma}_{1}^{2}}{\exp\left( {- \frac{\left( {x - \left( {k_{1} + 1} \right)} \right)^{2} + \left( {y - \left( {k_{1} + 1} \right)} \right)^{2}}{2\sigma_{1}^{2}}} \right)}}$

where, ε is in a range of [10⁻¹⁴,10⁻¹⁰] and the ε is 10⁻¹² in the embodiment, ⊗ is a filtering operation, G₁(x,y) is a 2D Gaussian kernel function, k₁ is a parameter on a window size of a filter, k₁ϵ[2,16] and the k₁ is 8 in the embodiment, and σ₁ is a standard deviation of the filter, σ₁∈(0,5] and the σ₁ is 2 in the embodiment.

(5) A final weight is determined

The final weight W_(n)(x,y) is determined according to Eq. (5):

$\begin{matrix} {{W_{n}\left( {x,y} \right)} = \frac{g_{n}\left( {x,y} \right)}{{\sum_{n = 1}^{N}{g_{n}\left( {x,y} \right)}} + \varepsilon}} & (5) \end{matrix}$ g_(n)(x, y) = w_(n)(x, y) ⊗ G₂(x, y) ${G_{2}\left( {x,y} \right)} = {\frac{1}{2{\pi\sigma}_{2}^{2}}{\exp\left( {- \frac{\left( {x - \left( {k_{2} + 1} \right)} \right)^{2} + \left( {y - \left( {k_{2} + 1} \right)} \right)^{2}}{2\sigma_{2}^{2}}} \right)}}$ w_(n)(x, y) = w_(1, n)(x, y) × w_(2, n)(x, y) × w_(3, n)(x, y)

where, G₂ (x,y) is a 2D Gaussian kernel function, k₂ is a parameter on a window size of a filter, k₂∈[2,20] and the k₂ is 10 in the embodiment, and σ₂ is a standard deviation of the filter, σ₂ϵ(0,10] and the σ₂ is 5 in the embodiment.

By determining the luminance distribution weight of the image, the exposure distribution weight of the image and the local gradient weight of the image, the embodiment combines the luminance distribution weight of the image, the exposure distribution weight of the image and the local gradient weight of the image to obtain the final weight. When the weight of the input image is determined, considerations are given to the feature distribution of the multi-exposure image. The weight function can adaptively compute the weight for each pixel in the images, and can obtain the weights of the images simply and quickly, to solve the technical problem that the existing MEF method does not consider the overall feature distribution of the multi-exposure image. The fused image has the advantages of high fusion quality, simple computation, abundant information and clear details, and so on.

(6) A fused image is determined

The input image and the weight are fused with an existing pyramid-based multi-resolution fusion method to determine the fused image. The pyramid-based multi-resolution fusion method has been disclosed on the following website:

https://github.com/tkd1088/multi-exposure-image-fusion/blob/master/code/functions/fus ion_pyramid.m.

The MEF method based on a feature distribution weight of multi-exposure image is completed. The fused image is as shown in FIG. 3. It can be seen from FIG. 3 that the image processed with the method in the embodiment includes abundant information and clear details.

Embodiment 2

Taking four input images of the multi-exposure cave image as an example, the MEF method based on a feature distribution weight of a multi-exposure image in the embodiment includes the following steps:

(1) CST is performed on an image

The step is the same as that of Embodiment 1.

(2) A luminance distribution weight of the image is determined

The step is the same as that of Embodiment 1.

(3) An exposure distribution weight of the image is determined

The step is the same as that of Embodiment 1.

(4) A local gradient weight of the image is determined

The local gradient weight w_(3,n)(x,y) of the image is determined according to Eq. (4):

$\begin{matrix} {{w_{3,n}\left( {x,y} \right)} = \frac{{grad}_{n}\left( {x,y} \right)}{{\sum_{n = 1}^{N}{{grad}_{n}\left( {x,y} \right)}} + \varepsilon}} & (11) \end{matrix}$ ${{grad}_{n}\left( {x,y} \right)} = \sqrt{{d_{x}^{2}\left( {x,y} \right)} + {d_{y}^{2}\left( {x,y} \right)}}$ ${d_{x}\left( {x,y} \right)} = \frac{\partial\left( {{Y_{n}\left( {x,y} \right)} \otimes {G_{1}\left( {x,y} \right)}} \right)}{\partial x}$ ${d_{y}\left( {x,y} \right)} = \frac{\partial\left( {{Y_{n}\left( {x,y} \right)} \otimes {G_{1}\left( {x,y} \right)}} \right)}{\partial y}$ ${G_{1}\left( {x,y} \right)} = {\frac{1}{2{\pi\sigma}_{1}^{2}}{\exp\left( {- \frac{\left( {x - \left( {k_{1} + 1} \right)} \right)^{2} + \left( {y - \left( {k_{1} + 1} \right)} \right)^{2}}{2\sigma_{1}^{2}}} \right)}}$

where, ε is in a range of [10⁻¹⁴,10⁻¹⁰] and the ε is 10⁻¹⁴ in the embodiment, ⊗ is a filtering operation, G₁(x,y) is a 2D Gaussian kernel function, k₁ is a parameter on a window size of a filter, k₁ϵ[2,16] and the k₁ is 2 in the embodiment, and σ₁ is a standard deviation of the filter, σ₁∈(0,5] and the σ₁ is 0.5 in the embodiment.

(5) A final weight is determined

The final weight W_(n)(x,y) is determined according to Eq. (5):

$\begin{matrix} {{W_{n}\left( {x,y} \right)} = \frac{g_{n}\left( {x,y} \right)}{{\sum_{n = 1}^{N}{g_{n}\left( {x,y} \right)}} + \varepsilon}} & (12) \end{matrix}$ g_(n)(x, y) = w_(n)(x, y) ⊗ G₂(x, y) ${G_{2}\left( {x,y} \right)} = {\frac{1}{2{\pi\sigma}_{2}^{2}}{\exp\left( {- \frac{\left( {x - \left( {k_{2} + 1} \right)} \right)^{2} + \left( {y - \left( {k_{2} + 1} \right)} \right)^{2}}{2\sigma_{2}^{2}}} \right)}}$ w_(n)(x, y) = w_(1, n)(x, y) × w_(2, n)(x, y) × w_(3, n)(x, y)

where, G₂(x,y) is a 2D Gaussian kernel function, k₂ is a parameter on a window size of a filter, k₂∈[2,20] and the k₂ is 2 in the embodiment, and σ² is a standard deviation of the filter, σ₂ϵ(0,10] and the σ₂ is 0.5 in the embodiment.

Other steps are the same as those of Embodiment 1.

The MEF method based on a feature distribution weight of a multi-exposure image is completed.

Embodiment 3

Taking four input images of the multi-exposure cave image as an example, the MEF method based on a feature distribution weight of a multi-exposure image in the embodiment includes the following steps:

(1) CST is performed on an image

The step is the same as that of Embodiment 1.

(2) A luminance distribution weight of the image is determined

The step is the same as that of Embodiment 1.

(3) An exposure distribution weight of the image is determined

The step is the same as that of Embodiment 1.

(4) A local gradient weight of the image is determined

The local gradient weight w_(3,n)(x,y) of the image is determined according to Eq. (4):

$\begin{matrix} {{w_{3,n}\left( {x,y} \right)} = \frac{{grad}_{n}\left( {x,y} \right)}{{\sum_{n = 1}^{N}{{grad}_{n}\left( {x,y} \right)}} + \varepsilon}} & (13) \end{matrix}$ ${{grad}_{n}\left( {x,y} \right)} = \sqrt{{d_{x}^{2}\left( {x,y} \right)} + {d_{y}^{2}\left( {x,y} \right)}}$ ${d_{x}\left( {x,y} \right)} = \frac{\partial\left( {{Y_{n}\left( {x,y} \right)} \otimes {G_{1}\left( {x,y} \right)}} \right)}{\partial x}$ ${d_{y}\left( {x,y} \right)} = \frac{\partial\left( {{Y_{n}\left( {x,y} \right)} \otimes {G_{1}\left( {x,y} \right)}} \right)}{\partial y}$ ${G_{1}\left( {x,y} \right)} = {\frac{1}{2{\pi\sigma}_{1}^{2}}{\exp\left( {- \frac{\left( {x - \left( {k_{1} + 1} \right)} \right)^{2} + \left( {y - \left( {k_{1} + 1} \right)} \right)^{2}}{2\sigma_{1}^{2}}} \right)}}$

where, ε is in a range of [10⁻¹⁴,10⁻¹⁰] and the ε is 10⁻¹⁰ in the embodiment, ⊗ is a filtering operation, G₁(x,y) is a 2D Gaussian kernel function, k₁ is a parameter on a window size of a filter, k₁ϵ[2,16] and the k₁ is 16 in the embodiment, and σ₁ is a standard deviation of the filter, σ₁∈(0,5] and the σ₁ is 5 in the embodiment.

(5) A final weight is determined

The final weight W_(n)(x,y) is determined according to Eq. (5):

$\begin{matrix} {{W_{n}\left( {x,y} \right)} = \frac{g_{n}\left( {x,y} \right)}{{\sum_{n = 1}^{N}{g_{n}\left( {x,y} \right)}} + \varepsilon}} & (14) \end{matrix}$ g_(n)(x, y) = w_(n)(x, y) ⊗ G₂(x, y) ${G_{2}\left( {x,y} \right)} = {\frac{1}{2{\pi\sigma}_{2}^{2}}{\exp\left( {- \frac{\left( {x - \left( {k_{2} + 1} \right)} \right)^{2} + \left( {y - \left( {k_{2} + 1} \right)} \right)^{2}}{2\sigma_{2}^{2}}} \right)}}$ w_(n)(x, y) = w_(1, n)(x, y) × w_(2, n)(x, y) × w_(3, n)(x, y)

where, G₂(x,y) is a 2D Gaussian kernel function, k₂ is a parameter on a window size of a filter, k₂∈[2,20] and the k₂ is 20 in the embodiment, and σ₂ is a standard deviation of the filter, σ₂ϵ (0,10] and the σ₂ is 10 in the embodiment.

Other steps are the same as those of Embodiment 1.

The MEF method based on a feature distribution weight of a multi-exposure image is completed.

Taking four input images of the multi-exposure cave image as an example, comparative simulation experiments are conducted according to the MEF method based on a feature distribution weight of a multi-exposure image in Embodiment 1 (hereinafter referred to as the present disclosure), Exposure Fusion Method (hereinafter referred to as No. 1), Multi-exposure Image Fusion: A Patch-wise Approach (hereinafter referred to as No. 2), A Multi-Exposure Image Fusion Based on the Adaptive Weights Reflecting the Relative Pixel Intensity and Global Gradient (hereinafter referred to as No. 3), and Multi-exposure Image Fusion via a Pyramidal Integration of the Phase Congruency of Input Images with the Intensity-based Maps (hereinafter referred to as No. 4), to verify the effects of the present disclosure. The existing MEF-structural similarity index (MEF-SSIM), average information entropy and average color saturation are used for evaluations, in which the higher MEF-SSIM score is an indication of the better quality of the fused image, the higher average information entropy is an indication of the more abundant information in the image, and the higher average saturation is an indication of the brighter color of the image. The MEF-SSIM scores for the present disclosure, No. 1, No. 2, No. 3 and No. 4 are compared.

Experimental results are shown in Table 1.

TABLE 1 MEF-SSIM scores of the present disclosure and other methods The present MEF No. 1 No. 2 No. 3 No. 4 disclosure MEF-SSIM score 0.980 0.975 0.977 0.981 0.982

As can be seen from Table 1, comparing the present disclosure with No. 1, No. 2, No. 3 and No. 4 in terms of the MEF-SSIM score, the present disclosure has the highest MEF-SSIM score of 0.982, indicating that the present disclosure achieves the better quality of fused image than other methods.

The average information entropies for the present disclosure, No. 3 and No. 4 are compared, with the result shown in Table 2.

TABLE 2 Average information entropies for the present disclosure and other methods The present MEF No. 3 No. 4 disclosure Average information entropy 3.231 3.220 3.238

As can be seen from Table 2, comparing the present disclosure with No. 3 and No. 4 in terms of the average information entropy, the present disclosure has the largest average information entropy of 3.238, indicating that the present disclosure includes more abundant information in the fused image.

The average color saturations for the present disclosure, No. 3 and No. 4 are compared, with the result shown in Table 3.

TABLE 3 Average color saturations for the present disclosure and other methods The present MEF No. 3 No. 4 disclosure Average color saturation 0.280 0.289 0.290

As can be seen from Table 3, comparing the present disclosure with No. 3 and No. 4 in terms of the average color saturation, the present disclosure has the largest average color saturation of 0.290, indicating that the present disclosure achieves the fused image with the brighter color. 

What is claimed is:
 1. A multi-exposure image fusion (MEF) method based on a feature distribution weight of a multi-exposure image, comprising the following steps: (1) performing color space transformation (CST) on an image transforming red, green, and blue (RGB) color components of an input multi-exposure image into a luminance component Y_(n)(x,y), a blue chrominance component Cb_(n)(x,y), and a red chrominance component Cr_(n)(x,y): Y _(n)(x,y)=0.257R _(n)(x,y)+0.564G _(n)(x,y)+0.098B _(n)(x,y)+16 Cb _(n)(x,y)=−0.148R _(n)(x,y)−0.291G(x,y)+0.439B _(n)(x,y)+128 Cr _(n)(x,y)=0.439R _(n)(x,y)−0.368G _(n)(x,y)−0.071B _(n)(x,y)+128   (1) wherein, R_(n)(x,y) is a red component at a pixel (x,y) in an nth image, G_(n)(x,y) is a green component at the pixel (x,y) in the nth image, B_(n)(x,y) is a blue component at the pixel (x,y) in the nth image, n is a finite positive integer, nϵ[1,N], (x,y) is a position coordinate of the pixel, and N is a number of exposure images and is a finite positive integer; (2) determining a luminance distribution weight of the image determining the luminance distribution weight w_(1,n)(x,y) of the image according to eq. (2): $\begin{matrix} {{w_{1,n}\left( {x,y} \right)} = {\exp\left( {- \frac{\left( {{Y_{n}\left( {x,y} \right)} - \left( {1 - m_{n}} \right)} \right)^{2}}{2{S_{n}^{2}\left( {x,y} \right)}}} \right)}} & (2) \end{matrix}$ ${S_{n}\left( {x,y} \right)} = \frac{Y_{n}\left( {x,y} \right)}{\sum_{n = 1}^{N}{Y_{n}\left( {x,y} \right)}}$ wherein, m_(n) is a mean of the nth image; (3) determining an exposure distribution weight of the image determining the exposure distribution weight w_(2,n)(x,y) of the image according to eq. (3): $\begin{matrix} {{w_{2,n}\left( {x,y} \right)} = {1 - {D_{n}\left( {x,y} \right)}}} & (3) \end{matrix}$ D_(n)(x, y) = ❘Y_(n)(x, y) − m(x, y)❘ ${m\left( {x,y} \right)} = {\frac{1}{N}{\sum_{n = 1}^{N}{Y_{n}\left( {x,y} \right)}}}$ (4) determining a local gradient weight of the image determining the local gradient weight w_(3,n)(x,y) of the image according to eq. (4): $\begin{matrix} {{w_{3,n}\left( {x,y} \right)} = \frac{{grad}_{n}\left( {x,y} \right)}{{\sum_{n = 1}^{N}{{grad}_{n}\left( {x,y} \right)}} + \varepsilon}} & (4) \end{matrix}$ ${{grad}_{n}\left( {x,y} \right)} = \sqrt{{d_{x}^{2}\left( {x,y} \right)} + {d_{y}^{2}\left( {x,y} \right)}}$ ${d_{x}\left( {x,y} \right)} = \frac{\partial\left( {{Y_{n}\left( {x,y} \right)} \otimes {G_{1}\left( {x,y} \right)}} \right)}{\partial x}$ ${d_{y}\left( {x,y} \right)} = \frac{\partial\left( {{Y_{n}\left( {x,y} \right)} \otimes {G_{1}\left( {x,y} \right)}} \right)}{\partial y}$ ${G_{1}\left( {x,y} \right)} = {\frac{1}{2{\pi\sigma}_{1}^{2}}{\exp\left( {- \frac{\left( {x - \left( {k_{1} + 1} \right)} \right)^{2} + \left( {y - \left( {k_{1} + 1} \right)} \right)^{2}}{2\sigma_{1}^{2}}} \right)}}$ wherein, ε is in a range of [10⁻¹⁴,10⁻¹⁰], ⊗ is a filtering operation, G₁(x,y) is a two-dimensional (2D) Gaussian kernel function, k₁ is a parameter on a window size of a filter, k₁ϵ[2,16], and σ₁ is a standard deviation of the filter, σ₁∈(0,5]; (5) determining a final weight determining the final weight W_(n)(x,y) according to eq. (5): $\begin{matrix} {{W_{n}\left( {x,y} \right)} = \frac{g_{n}\left( {x,y} \right)}{{\sum_{n = 1}^{N}{g_{n}\left( {x,y} \right)}} + \varepsilon}} & (5) \end{matrix}$ g_(n)(x, y) = w_(n)(x, y) ⊗ G₂(x, y) ${G_{2}\left( {x,y} \right)} = {\frac{1}{2{\pi\sigma}_{2}^{2}}{\exp\left( {- \frac{\left( {x - \left( {k_{2} + 1} \right)} \right)^{2} + \left( {y - \left( {k_{2} + 1} \right)} \right)^{2}}{2\sigma_{2}^{2}}} \right)}}$ w_(n)(x, y) = w_(1, n)(x, y) × w_(2, n)(x, y) × w_(3, n)(x, y) wherein, G₂(x,y) is a 2D Gaussian kernel function, k₂ is a parameter on a window size of a filter, k₂∈[2,20], and σ₂ is a standard deviation of the filter, σ₂ϵ(0,10]; and (6) determining a fused image fusing the input image and the weight with an existing pyramid-based multi-resolution fusion method to determine the fused image; and completing the MEF method based on a feature distribution weight of a multi-exposure image
 2. The MEF method based on a feature distribution weight of a multi-exposure image according to claim 1, wherein in step (4), the k₁ is 8, and the σ₁ is
 2. 3. The MEF method based on a feature distribution weight of a multi-exposure image according to claim 1, wherein in step (5), the k₂ is 10, and the σ₂ is
 5. 